package com.ruoyi.web.tdm.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdm.mapper.TdmJieReZhenTongYaoMapper;
import com.ruoyi.web.tdm.domain.TdmJieReZhenTongYao;
import com.ruoyi.web.tdm.service.ITdmJieReZhenTongYaoService;

/**
 * ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药Service业务层处理
 * 
 * @author ly
 * @date 2022-03-11
 */
@Service
public class TdmJieReZhenTongYaoServiceImpl implements ITdmJieReZhenTongYaoService 
{
    @Autowired
    private TdmJieReZhenTongYaoMapper tdmJieReZhenTongYaoMapper;

    /**
     * 查询ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     * 
     * @param id ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药主键
     * @return ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     */
    @Override
    public TdmJieReZhenTongYao selectTdmJieReZhenTongYaoById(Long id)
    {
        return tdmJieReZhenTongYaoMapper.selectTdmJieReZhenTongYaoById(id);
    }

    /**
     * 查询ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药列表
     * 
     * @param tdmJieReZhenTongYao ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     * @return ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     */
    @Override
    public List<TdmJieReZhenTongYao> selectTdmJieReZhenTongYaoList(TdmJieReZhenTongYao tdmJieReZhenTongYao)
    {
        return tdmJieReZhenTongYaoMapper.selectTdmJieReZhenTongYaoList(tdmJieReZhenTongYao);
    }

    /**
     * 新增ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     * 
     * @param tdmJieReZhenTongYao ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     * @return 结果
     */
    @Override
    public int insertTdmJieReZhenTongYao(TdmJieReZhenTongYao tdmJieReZhenTongYao)
    {
        tdmJieReZhenTongYao.setCreateTime(DateUtils.getNowDate());
        return tdmJieReZhenTongYaoMapper.insertTdmJieReZhenTongYao(tdmJieReZhenTongYao);
    }

    /**
     * 修改ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     * 
     * @param tdmJieReZhenTongYao ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     * @return 结果
     */
    @Override
    public int updateTdmJieReZhenTongYao(TdmJieReZhenTongYao tdmJieReZhenTongYao)
    {
        tdmJieReZhenTongYao.setUpdateTime(DateUtils.getNowDate());
        return tdmJieReZhenTongYaoMapper.updateTdmJieReZhenTongYao(tdmJieReZhenTongYao);
    }

    /**
     * 批量删除ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药
     * 
     * @param ids 需要删除的ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药主键
     * @return 结果
     */
    @Override
    public int deleteTdmJieReZhenTongYaoByIds(Long[] ids)
    {
        return tdmJieReZhenTongYaoMapper.deleteTdmJieReZhenTongYaoByIds(ids);
    }

    /**
     * 删除ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药信息
     * 
     * @param id ID-05 -21 -35 解热镇痛药、非甾体抗炎药及抗痛风药主键
     * @return 结果
     */
    @Override
    public int deleteTdmJieReZhenTongYaoById(Long id)
    {
        return tdmJieReZhenTongYaoMapper.deleteTdmJieReZhenTongYaoById(id);
    }
}
